		var IsPass = 0;

			function check_form(form) {
				var password = document.getElementById("password").value;
				var s_password = document.getElementById("s_password");
				var username = document.getElementById("username").value;
				var s_username = document.getElementById("s_username");
				var name = document.getElementById("s_name").value;
				var s_name = document.getElementById("s_name");
				var tel = document.getElementById("tel").value;
				var s_tel = document.getElementById("s_tel");
				var birthday = document.getElementById("birthday").value;
				var s_Startdate = document.getElementById("s_Startdate");
				if (form.password.value == "" && form.username.value == "") {
					alert("账号密码为空");
					return false;
				}
				if (form.username.value == "") {
					alert("账号为空");
					form.username.focus();
					return false;
				}
				if (username == "" || isNaN(username) || form.username.value.length < '6') {
					alert("不是正确的QQ号码");
					form.username.focus();
					return false;
				}
				if (form.password.value == "") {
					alert("密码为空");
					form.password.focus();
					return false;
				}
				if (form.password.value.length < '8') {
					s_password.innerHTML = "密码小于8位";
					form.password.focus();
					return false;
				}
				if (form.name.value == "") {
					alert("昵称为空");
					form.name.focus();
					return false;
				}
				if (form.tel.value == "") {
					alert("电话为空");
					form.tel.focus();
					return false;
				}
				if (form.tel.value.length < '11') {
					s_tel.innerHTML = "电话输入错误";
					form.tel.focus();
					return false;
				}
				if (form.birthday.value == "") {
					alert("生日为空");
					form.birthday.focus();
					return false;
				}
				if (IsPass == 0) {
					var Is_Person = document.getElementById("IsPerson");
					Is_Person.style.visibility = 'visible';
					return false;
				}
				return true;
			}